package org.dao.imp;

import org.dao.DlDao;
import org.hibernate.SessionFactory;
import org.model.Dlb;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class DlDaoImp extends HibernateDaoSupport implements DlDao {
//	private SessionFactory sessionFactory;
//
//	public SessionFactory getSessionFactory() {
//		return sessionFactory;
//	}
//
//	public void setSessionFactory(SessionFactory sessionFactory) {
//		this.sessionFactory = sessionFactory;
//	}
//	public void save(Dlb dl) {
//		try {
//			Session session = sessionFactory.openSession();
//			Transaction ts = session.beginTransaction();
//			session.save(dl);
//			ts.commit();
//		} catch(Exception e) {
//			e.printStackTrace();
//		}
//	}
	public void save(Dlb dl) {
		getHibernateTemplate().save(dl);
	}
}
